package com.errol.batchprocessor.batchprocessor.advisorimpl.timeconsole;

import com.renjia.service.generic.middleware.batchprocessor.payload.AbstractPiecePayload;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhang xiao bin
 * @version v1.0
 * @date 2021/03/12
 * @since v5.0.6
 **/
class TimeConsole {

    long batchAddTime;
    long batchStartTime;
    long batchFinishTime;
    long pieceFinishCount;
    long pieceUsedTimeAmount;
    /**
     * 以 PP 的地址做 key
     */
    Map<AbstractPiecePayload, Long> pieceStartTimeMap;

    public TimeConsole() {
        batchAddTime = System.currentTimeMillis();
        pieceStartTimeMap = new HashMap<>();
    }
}
